package com.hq.zb.dto;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-27
 */
@TableName("sys_attachment")
public class Attachment extends Model<Attachment> {

    private static final long serialVersionUID = 1L;

    /**
     * 附件表ID
     */
    @TableId(value = "attachment_id", type = IdType.AUTO)
    private Integer attachmentId;
    /**
     * 附件名称
     */
    @TableField("attachment_name")
    private String attachmentName;
    /**
     * 扩展名
     */
    private String ext;
    /**
     * url
     */
    private String url;
    /**
     * 业务类型
     */
    @TableField("business_type")
    private String businessType;
    /**
     * 业务ID
     */
    @TableField("business_id")
    private Integer businessId;
    /**
     * 临时业务Key
     */
    @TableField("temp_key")
    private String tempKey;
    /**
     * 系统
     */
    @TableField("sys_source")
    private String sysSource;
    /**
     * 是否删除0/1
     */
    @TableField("delete_flag")
    private Boolean deleteFlag;
    /**
     * 创建人id
     */
    @TableField("created_by")
    private Integer createdBy;
    @TableField("creation_date")
    private Date creationDate;
    @TableField("last_updated_by")
    private Integer lastUpdatedBy;
    /**
     * 最后时间
     */
    @TableField("last_update_date")
    private Date lastUpdateDate;


    public Integer getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentId(Integer attachmentId) {
        this.attachmentId = attachmentId;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getTempKey() {
        return tempKey;
    }

    public void setTempKey(String tempKey) {
        this.tempKey = tempKey;
    }

    public String getSysSource() {
        return sysSource;
    }

    public void setSysSource(String sysSource) {
        this.sysSource = sysSource;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Integer getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(Integer lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.attachmentId;
    }

    @Override
    public String toString() {
        return "Attachment{" +
        ", attachmentId=" + attachmentId +
        ", attachmentName=" + attachmentName +
        ", ext=" + ext +
        ", url=" + url +
        ", businessType=" + businessType +
        ", businessId=" + businessId +
        ", tempKey=" + tempKey +
        ", sysSource=" + sysSource +
        ", deleteFlag=" + deleteFlag +
        ", createdBy=" + createdBy +
        ", creationDate=" + creationDate +
        ", lastUpdatedBy=" + lastUpdatedBy +
        ", lastUpdateDate=" + lastUpdateDate +
        "}";
    }
}
